package com.yang.common;

import java.io.Serializable;

/**
 * @Description:
 * @Author: YANG QIANG
 * @Time: 2022-12-19 22:16
 */
public class Message implements Serializable {

    private final static long serialVersionUID = 1L;

    // 发送者
    private String sender;
    // 接收者
    private String getter;
    // 消息内容
    private String content;
    // 发送时间
    private String sendTime;
    // 消息类型
    private String messageType;

    // 扩展和文件消息的属性
    private byte[] fileBytes;// 文件字节数据数组
    private long fileLen = 0;
    private String fileSrcPath;// 文件源路径
    private String fileDestPath;// 文件写入路径


    public byte[] getFileBytes() {
        return fileBytes;
    }

    public void setFileBytes(byte[] fileBytes) {
        this.fileBytes = fileBytes;
    }

    public long getFileLen() {
        return fileLen;
    }

    public void setFileLen(long fileLen) {
        this.fileLen = fileLen;
    }

    public String getFileSrcPath() {
        return fileSrcPath;
    }

    public void setFileSrcPath(String fileSrcPath) {
        this.fileSrcPath = fileSrcPath;
    }

    public String getFileDestPath() {
        return fileDestPath;
    }

    public void setFileDestPath(String fileDestPath) {
        this.fileDestPath = fileDestPath;
    }

    public Message() {
    }

    public Message(String sender, String getter, String content, String sendTime) {
        this.sender = sender;
        this.getter = getter;
        this.content = content;
        this.sendTime = sendTime;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }
}
